<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Employee - Start Page</title>
<script>
function createEmployee(){
	 window.open("employee/createEmployee.jsp", "1", 'height=600,width=1000');
}

function listEmployees(){
	 window.open("employee/listEmployees.do", "2", 'height=600,width=900');
}
function cancelReservation(){
	 window.open("employee/cancelReservation.jsp", "3", 'height=100,width=900');
}

function listCustomer(){
	 window.open("customer/listCustomer.do?from=employee", "4", 'height=600,width=900');
}

function createCustomer(){
	 window.open("customer/customerRegistration.jsp?from=employee", "5", 'height=600,width=900');
}

function editMyProfile(){
	 window.open("employee/getEmployee.do?id=<c:out value='${user.id}'></c:out>&from=me", "6", 'height=600,width=900');
}

function viewFlightsByDate(){
	 window.open("employee/viewFlightsByDate.do", "7", 'height=600,width=1200');
	
}


function viewAllJourney(){
	window.open("employee/viewAllJourney.do", "journey", 'height=600,width=900');
}

function viewAllFlights(){
	window.open("employee/viewAllFlights.do", "flights", 'height=600,width=900');
}

function searchEmployees(){
	window.open("employee/employeeSearch.jsp", "flights", 'height=600,width=900');
}
</script>
</head>
<body>
<table>
<tr>
	<td style="COLOR: #0000ff; FONT-SIZE: medium; FONT-FAMILY: 'Verdana'; FONT-WEIGHT: bold;"> Welcome <c:out value="${user.lastName}"></c:out>, <c:out value="${user.firstName}"></c:out> </td>
	
</tr>
	<tr>
		<td>
			<table>
				<tr> <td> &nbsp; </td></tr>
				
			
			</table>
		<table align="left" style="BACKGROUND-COLOR: #c0c0c0;COLOR: #004040; FONT-WEIGHT: bold; FONT-SIZE: x-small; FONT-FAMILY: 'Verdana'; vertical-align: top;border-bottom-style:solid; ; border-bottom-color: gray; 
							border-right-style:solid; ; border-right-color: gray; 
							border-left-style:solid; ; border-left-color: gray; border-top-style:solid; ; border-top-color: gray; width : 172px;">
			
			<tr>
				<td><a href="javascript:editMyProfile()">Edit My Profile</a></td>
			</tr>
			
			<tr>
				<td><a href="javascript:listAllFlights()">List All Flights</a></td>
			</tr>
			
			<tr>
				<td><a>Edit Flight</a></td>
			</tr>
			<tr>
				<td><a>List Reservations</a></td>
			</tr>
			<tr>
				<td><a href="javascript:createCustomer()">Create Customer</a></td>
			</tr>								
			<tr>
				<td><a href="javascript:listCustomer()">List Customers</a></td>
			</tr>
			<tr>
				<td><a href="javascript:viewFlightsByDate()">View Flights By Date</a></td>
			</tr>
			
			<tr>
				<td><a href="javascript:listEmployees()">List Employees</a></td>
			</tr>
			<tr>
				<td><a href="javascript:createEmployee()">Create Employee</a></td>
			</tr>
			<tr>
				<td><a href="javascript:viewAllJourney()">View All Journey</a></td>
			</tr>
			
			<tr>
				<td><a href="javascript:viewAllFlights()">List All Flights</a></td>
			</tr>
			
			<tr>
				<td><a href="javascript:searchEmployees()">Search Employees</a></td>
			</tr>
			
		</table>		
		</td>
		
	</tr>
</table>

</body>
</html>